package com.zft.userwalletmanager.web.request;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class WalletRefundRequest {
    /**
     * 订单号
     */
    @NotBlank(message = "orderId is null")
    private String orderId;
    /**
     * 用户号
     */
    @NotBlank(message = "userId is null")
    private String userId;
    /**
     * 退款金额
     */
    @NotNull(message = "refund is null")
    @Min(value = 1, message = "refund must > 0")
    private Long refund;
    /**
     * 币种
     */
    @NotBlank(message = "currency is null")
    private String currency;
    /**
     * 交易对手账号
     */
    @NotBlank(message = "counterPartyWalletNo is null")
    private String counterPartyWalletNo;
}
